<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Elasticsearch 服务器连接定义
    |--------------------------------------------------------------------------
    */

    'connections' => [
        [
            'host'   =>  env('ELASTICSEARCH_HOST', '127.0.0.1'),
            'port'   => env('ELASTICSEARCH_PORT', '9200'),
            'scheme' => 'http',
            'user'   => env('ELASTICSEARCH_USER', ''),
            'pass'   => env('ELASTICSEARCH_PASS', ''),
        ]
    ],

    /*
    |--------------------------------------------------------------------------
    | 连接失败重试次数
    |--------------------------------------------------------------------------
    */

    'retries' => 2,

    /*
    |--------------------------------------------------------------------------
    | 操作超时时间
    |--------------------------------------------------------------------------
    */

    'timeout' => 10,

    /*
    |--------------------------------------------------------------------------
    | 日志写入器名
    |--------------------------------------------------------------------------
    */

    'log' => 'elasticsearch',

    /*
    |--------------------------------------------------------------------------
    | Elasticsearch 索引名
    |--------------------------------------------------------------------------
    */

    'index' => [

        /*
        |--------------------------------------------------------------------------
        | 用户标签
        |--------------------------------------------------------------------------
        */
        'match' => 'echo_label_match',
    ],

];
